SubjectBase class¶
Defined in
Namespace: System.Reactive.Subjects
Assembly: System.Reactive.dll
Full name: System.Reactive.Subjects.SubjectBase<T>
Modifiers: public abstract
Summary¶
Base class for objects that are both an observable sequence as well as an observer.
Applies to
netstandard2.0
Class hierarchy
classDiagram
class SubjectBase~T~
class ISubject~T~ {
<>
}
ISubject~T~ <|.. SubjectBase~T~
class ISubject~T, T~ {
<>
}
ISubject~T, T~ <|.. SubjectBase~T~
class IObserver~T~ {
<>
}
IObserver~T~ <|.. SubjectBase~T~
class IObservable~T~ {
<>
}
IObservable~T~ <|.. SubjectBase~T~
class IDisposable {
<>
}
IDisposable <|.. SubjectBase~T~
Implements: ISubject
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| HasObservers | Indicates whether the subject has observers subscribed to it. |
| IsDisposed | Indicates whether the subject has been disposed. |
Methods¶
| Name | Summary |
|---|---|
| Dispose | Releases all resources used by the current instance of the subject and unsubscribes all observers. |
| OnCompleted | Notifies all subscribed observers about the end of the sequence. |
| OnError | Notifies all subscribed observers about the specified exception. |
| OnNext | Notifies all subscribed observers about the arrival of the specified element in the sequence. |
| Subscribe | Subscribes an observer to the subject. |